//
//  APReuseView_Identifier_Protocol.swift
//  APSwift
//
//  Created by jianbo.pei on 2023/4/27.
//

import Foundation

protocol APReuseView_Identifier_Protocol {
    /// 重用视图的标识符
    /// - Returns: 标识符
    static func reuserIdentifier() -> String
}

extension APReuseView_Identifier_Protocol {
    static func reuserIdentifier() -> String {
        if let cls = Self.self as? AnyClass {
            let clsStr = NSStringFromClass(cls)
            return clsStr + "_identifier"
        } else {
            return "reuse_identifier"
        }
    }
}
